﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ECItemAddOCPanel.ascx.cs"
 Inherits="UILGestion.Control.ECItemAddOCPanel" %>


     <%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
     function SelectAll(frm, id) {

         var frm = document.getElementById("itemPlaceHolderContainer");
         for (i = 1; i < frm.rows.length; i++) {
             var checkbox = frm.rows[i].cells[0].childNodes[0];
             if (checkbox != null)
                 checkbox.checked = document.getElementById(id).checked;
         }
     };
    </script>
      <asp:Panel ID="Panel1" runat="server" CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >
                Añadir Orden de Compra Item sin Comparativo asignado.</asp:Panel>
                 <asp:Panel ID="Panel2" runat="server"  class="ms-crm-Form-Body" >
 
                     <input id="idObra" type="hidden"  runat="server"/>
    
    <asp:UpdatePanel runat="server" ID="UpdatePanelGrilla"  UpdateMode="Conditional">
    <ContentTemplate>
      <input id="EsReAgrupado" type="hidden" runat="server" />

     <asp:GridView ID="itemGridView" 
       Runat="Server" 
        DataKeyNames="idInternal"  
     Width="800px"
        AllowSorting="true" 
            OnSorting="gridview_sorting" 
            SkinID="GridView" >
 <Columns>
    
    <asp:TemplateField ItemStyle-Width="1%">
                            <ItemTemplate >
                                <asp:CheckBox runat="server" ID="chkEmployeeSelector"  ClientIDMode="Static"  Font-Size="Large"
                                 OnCheckedChanged="ItemSelectChange" AutoPostBack="true"/>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <asp:CheckBox runat="server" ID="chkSelectAll" ClientIDMode="Static"  Font-Size="Medium"
                                 OnCheckedChanged="ItemAllSelectChange" AutoPostBack="true"/>
                            </HeaderTemplate>
                        </asp:TemplateField>
               <asp:BoundField DataField="numDocumentoOC" HeaderText="Num. O/C" ItemStyle-Font-Bold="true"   HeaderStyle-Width="50px" />
                <asp:BoundField DataField="fechaStr" HeaderText="fecha"   HeaderStyle-Width="50px" />
                <asp:BoundField DataField="codigo" HeaderText="Codigo"   HeaderStyle-Width="55px" />
                <asp:BoundField DataField="descripcion" HeaderText="Descripcion"  HeaderStyle-Width="300px"/>
                <asp:BoundField DataField="unidad" HeaderText="Unid." HeaderStyle-Width="35px" />
                <asp:BoundField DataField="cantidadStr" HeaderText="Cant."  ItemStyle-Width="65px" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField DataField="precioStr" HeaderText="Precio"  ItemStyle-Width="75px"  ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField DataField="subtotalStr" HeaderText="Disponible"  ItemStyle-Width="75px"  ItemStyle-HorizontalAlign="Right" />
                

                  </Columns>
                  </asp:GridView>
  </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>






